package com.oocl.o2o.client.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import com.oocl.o2o.client.service.ComplaintInfoService;
import com.oocl.o2o.client.vo.ComplaintVO;


@Controller
public class ComplaintInfoController {
	
	@Resource(name="complaintInfoServiceImpl")
	private ComplaintInfoService complaintInfoService;
	
	@ResponseBody
	@PostMapping("/complaintInfo")
	public ComplaintVO add(@RequestBody ComplaintVO complaintVO){
		ComplaintVO c = new ComplaintVO();
		c = complaintInfoService.add(complaintVO);
		return c;
	}
}
